package com.ios.dto;

import com.ios.entity.QueryLocation;
import com.ios.enums.LocationStateEnum;

import java.util.List;

/**
*@Author:WenTao
*@Description:查询gps信息中间类型
*@Date:22:30 2018/7/22
*/
public class QueryLocationExecution {
    /*结果状态*/
    private int state;
    /*状态标识*/
    private String stateInfo;
    /*查询记录*/
    private QueryLocation queryLocation;
    private List<QueryLocation> queryLocationList;

    /*操作失败时的构造器*/
    public QueryLocationExecution(LocationStateEnum stateEnum){
        this.state = stateEnum.getState();
        this.stateInfo = stateEnum.getStateInfo();
    }

    /*操作成功时的构造器*/
    public QueryLocationExecution(LocationStateEnum stateEnum,QueryLocation queryLocation){
        this.state = stateEnum.getState();
        this.stateInfo = stateEnum.getStateInfo();
        this.queryLocation = queryLocation;
    }

    /*操作成功时的构造器*/
    public QueryLocationExecution(LocationStateEnum stateEnum,List<QueryLocation> queryLocationList){
        this.state = stateEnum.getState();
        this.stateInfo = stateEnum.getStateInfo();
        this.queryLocationList = queryLocationList;
    }

    public int getState() {
        return state;
    }

    public void setState(int state) {
        this.state = state;
    }

    public String getStateInfo() {
        return stateInfo;
    }

    public void setStateInfo(String stateInfo) {
        this.stateInfo = stateInfo;
    }

    public QueryLocation getQueryLocation() {
        return queryLocation;
    }

    public void setQueryLocation(QueryLocation queryLocation) {
        this.queryLocation = queryLocation;
    }

    public List<QueryLocation> getQueryLocationList() {
        return queryLocationList;
    }

    public void setQueryLocationList(List<QueryLocation> queryLocationList) {
        this.queryLocationList = queryLocationList;
    }
}
